package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.service.BrandService;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/brand")
public class BrandController {

    private final BrandService brandService;

    @RequestMapping("/brand-list")
    public AjaxResult brandList() {
        return AjaxResult.success(brandService.list());
    }
}
